package com.eascs.web.demo.sso;

import javax.inject.Inject;

import org.springframework.stereotype.Repository;

import com.eascs.app.dao.JdbcSession;
import com.eascs.web.sso.User;

@Repository
public class EaSsoDao {
	@Inject
	private JdbcSession jdbcSession;

//	public User getUserByAccount(String loginName) {
//		String sql = "select h.EMPLOYEENO as no,h.EMPLOYEECODE as code,h.EMPLOYEENAMECN as cname,h.EMAIL as email,h.MOBILE as mobile,h.EMPLOYEEACCOUNT as account from HR_EMPLOYEE h where h.EMPLOYEEACCOUNT = ?";
//		return this.jdbcSession.findEntity(sql, User.class, loginName);
//	}
	public User getUserByAccount(String loginName) {
		User user= new User();
		user.setAccount(loginName);
		return user;
	}
}
